package cn.huoyingkeji.common.domain;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TreeDTO extends DTO{

    /** 父id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "父ID")
    private Long parentId;
    List<TreeDTO> childrens = new ArrayList<>();
}
